package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum PayType implements IEnum<Integer> {
    ALIPAY(1, "支付宝"),
    WECHAT(2, "微信支付");
    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    PayType(Integer value, String type) {
        this.value = value;
        this.type = type;
    }
}
